package com.heima.wemedia.thread;


import com.heima.model.wemedia.pojos.WmUser;

//Threadlocal
public class WmUserThreadLocal {
    private static ThreadLocal<WmUser> threadLocal = new ThreadLocal<>();

    public static WmUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }

    public static void set(WmUser wmUser) {
        threadLocal.set(wmUser);
    }
}
